//
//  MyFenViewController.m
//  penzer
//
//  Created by caiyc on 2018/10/4.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "MyFenViewController.h"

@interface MyFenViewController ()
@property (weak, nonatomic) IBOutlet UILabel *num4;
@property (weak, nonatomic) IBOutlet UILabel *num3;
@property (weak, nonatomic) IBOutlet UILabel *num2;
@property (weak, nonatomic) IBOutlet UILabel *num1;

@end

@implementation MyFenViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     [self setNavigation:1 andTitle:@"我的粉丝" andNaviColor:[UIColor whiteColor] andTitleColor:nil];
    [self loadData];
    // Do any additional setup after loading the view from its nib.
}
-(void)loadData{
    NSDictionary *param = @{@"ac":@"member",
                            @"op":@"member",
                            @"ctrl":@"live_anchor",
                            @"ta":@"myfans"};
    [self weqPostHandle:param success:^(id response) {
        if(response){
            self.total_fans.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_fans"]];
             self.man_fans.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_fans_man"]];
             self.woman_fans.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_fans_women"]];
             self.num1.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_19_25"]];
             self.num2.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_26_35"]];
             self.num3.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_36_45"]];
             self.num4.text = [NSString stringWithFormat:@"%@",response[@"data"][@"total_46_55"]];
        }
    } failure:^(NSError *error) {
        
    }];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
